package com.sea.human.mapper;

import com.sea.human.entity.Performance;
import com.sea.human.entity.PerformanceDetail;

import java.util.List;

public interface PerformanceDetailMapper {
    /**
     * 条件查询
     * @param performanceDetail
     * @return
     */
    List<PerformanceDetail> findByCnd(PerformanceDetail performanceDetail);

    /**
     * 新增绩效
     * @param performanceDetail
     * @return
     */
    int insert(PerformanceDetail performanceDetail);

    /**
     * 查询指定
     * @param id
     * @return
     */
    PerformanceDetail findById(Integer id);

    /**
     * 修改
     * @param performanceDetail
     * @return
     */
    int update(PerformanceDetail performanceDetail);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 获取权重总和
     * @param performanceId
     * @return
     */
    Integer findTotalWeight(Integer performanceId);

    List<PerformanceDetail> export(PerformanceDetail performanceDetail);
}
